package o;

import android.os.Build.VERSION;
import android.os.Bundle;
import android.view.accessibility.AccessibilityNodeInfo;
import android.view.accessibility.AccessibilityNodeProvider;
import androidx.annotation.Nullable;
import androidx.annotation.RequiresApi;
import java.util.ArrayList;
import java.util.List;

public class im {
    private final Object ˏ;

    @RequiresApi(16)
    static class e extends AccessibilityNodeProvider {
        final im ˏ;

        e(im imVar) {
            this.ˏ = imVar;
        }

        public AccessibilityNodeInfo createAccessibilityNodeInfo(int i) {
            in ˋ = this.ˏ.ˋ(i);
            if (ˋ == null) {
                return null;
            }
            return ˋ.ˏ();
        }

        public List<AccessibilityNodeInfo> findAccessibilityNodeInfosByText(String str, int i) {
            List ˎ = this.ˏ.ˎ(str, i);
            if (ˎ == null) {
                return null;
            }
            List<AccessibilityNodeInfo> arrayList = new ArrayList();
            int size = ˎ.size();
            for (int i2 = 0; i2 < size; i2++) {
                arrayList.add(((in) ˎ.get(i2)).ˏ());
            }
            return arrayList;
        }

        public boolean performAction(int i, int i2, Bundle bundle) {
            return this.ˏ.ˋ(i, i2, bundle);
        }
    }

    @RequiresApi(19)
    static class a extends e {
        a(im imVar) {
            super(imVar);
        }

        public AccessibilityNodeInfo findFocus(int i) {
            in ˊ = this.ˏ.ˊ(i);
            if (ˊ == null) {
                return null;
            }
            return ˊ.ˏ();
        }
    }

    public im() {
        if (VERSION.SDK_INT >= 19) {
            this.ˏ = new a(this);
        } else if (VERSION.SDK_INT >= 16) {
            this.ˏ = new e(this);
        } else {
            this.ˏ = null;
        }
    }

    public im(Object obj) {
        this.ˏ = obj;
    }

    public Object ˎ() {
        return this.ˏ;
    }

    @Nullable
    public in ˋ(int i) {
        return null;
    }

    public boolean ˋ(int i, int i2, Bundle bundle) {
        return false;
    }

    @Nullable
    public List<in> ˎ(String str, int i) {
        return null;
    }

    @Nullable
    public in ˊ(int i) {
        return null;
    }
}
